package org.example.design.adapter;

/**
 * @Auther:Liu
 * @Testname:phone
 * @Date:2025/8/15 15:05
 */
public class phone {
    public void charge(phoneCharge charge) {
        int i = charge.output5v();
        if (i==5){
            System.out.println("开始给手机充电");
            return;
        }
        System.out.println("电压不符合要求");
    }
}
